redis-server: server.o anet.o ae.o networking.o
	gcc ae.o server.o anet.o networking.o -o ./build/redis-server

server.o: server.c networking.c
	gcc -c server.c networking.c

anet.o: anet.c anet.h
	gcc -c anet.c

ae.o: ae.c ae.h
	gcc -c ae.c